/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package models;

import java.io.Serializable;
import java.util.List;

/**
 *
 * @author gabriellebotbol
 */
public class News implements Serializable
{
    
    private List<Messenger> messengers;

    /**
     * Get the value of messengers
     *
     * @return the value of messengers
     */
    public List<Messenger> getMessengers() 
    {
        return messengers;
    }

    @Override
    public int hashCode() {
        int hash = 5;
        hash = 23 * hash + (this.messengers != null ? this.messengers.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final News other = (News) obj;
        if (this.messengers != other.messengers && (this.messengers == null || !this.messengers.equals(other.messengers))) {
            return false;
        }
        return true;
    }

    public News(List<Messenger> messengers) 
    {
        this.messengers = messengers;
    }

    private News() 
    {
    }
    
    
}
